<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="all" />
<meta name="author" content="{$TS_CF[info][email]}" />
<meta name="Copyright" content="{$TS_CF[info][name]}" />
<meta name="keywords" content="{$TS_SITE[base][site_key]}" /> 
<meta name="description" content="{$TS_SITE[base][site_desc]}" /> 
{/if}
<link rel="shortcut icon" href="{SITE_URL}public/images/favicon.png" />
{if is_file('theme/'.$site_theme.'/base.css')}
<link rel="stylesheet" type="text/css" href="{SITE_URL}theme/{$site_theme}/base.css" id="thems">
{/if}
{if is_file('app/'.$app.'/skins/'.$skin.'/style.css')}
<link rel="stylesheet" type="text/css" href="{SITE_URL}app/{$app}/skins/{$skin}/style.css">
{/if}
<script>var siteUrl = '{SITE_URL}';</script>
<script src="{SITE_URL}public/js/jquery-1.7.1.min.js" type="text/javascript"></script>
{if is_file('app/'.$app.'/js/extend.func.js')}
<script src="{SITE_URL}app/{$app}/js/extend.func.js" type="text/javascript"></script>
{/if}
{php doAction('pub_header_top')}
</head>
<body>
<div class="header">
<div class="hc">
<div class="left">
<a class="logo" href="{SITE_URL}"></a></div>
<div class="nav">
<ul>
<li><a href="{SITE_URL}">{php echo L::public_home}</a></li>
{php doAction('pub_header_nav')}
<li><a href="{SITE_URL}{tsUrl('group','explore')}">{php echo L::public_explore}</a></li>
</ul>
</div>

<div class="right">
{if $TS_USER[user] == ''}
<a href="{SITE_URL}{tsUrl('user','register')}"><img class="fimg" src="{SITE_URL}public/images/user_normal.jpg" width="24" align="absmiddle" alt="{php echo L::public_welcome}" /></a> {php echo L::public_welcome}
<br />
<a href="{SITE_URL}{tsUrl('user','login')}">{php echo L::public_login}</a> | <a href="{SITE_URL}{tsUrl('user','register')}">{php echo L::public_register}</a>
{else}
<a href="{SITE_URL}{tsUrl('user','space',array('id'=>$TS_USER[user][userid]))}">
<img class="fimg" src="{if $TS_USER[user][face]==""}{SITE_URL}public/images/user_normal.jpg{else}{SITE_URL}{php echo tsXimg($TS_USER[user][face],'user','24','24',$TS_USER[user][path],'1')}{/if}" width="24" align="absmiddle" alt="{$TS_USER['user']['username']}" /> 
</a>
<a href="{SITE_URL}{tsUrl('user','space',array('id'=>$TS_USER[user][userid]))}">{$TS_USER[user][username]}</a>   |  <a href="{SITE_URL}{tsUrl('user','set',array(ts=>base))}" >{php echo L::public_set}</a> | <span id="newmsg"></span> <a href="{SITE_URL}{tsUrl('message','my')}">{php echo L::public_message}</a>
<br>


{if $TS_SITE['base']['isinvite']=='1'}
  <a href="{SITE_URL}{tsUrl('user','invite')}">{php echo L::public_invite}</a> |   
{/if}
 
  <a href="{SITE_URL}{tsUrl('user','login',array(ts=>out))}">{php echo L::public_logout}</a>
{/if}

| <a href="{SITE_URL}{tsUrl('home','theme')}">{php echo L::public_theme}</a>

{if $TS_USER['user']['isadmin']=='1'}
|  <a target="_blank" href="{SITE_URL}index.php?app=system">{php echo L::public_manage}</a>
{/if}

</div>
<div class="search">
<form method="GET" action="index.php">
<input type="hidden" name="app" value="search" />
<input type="hidden" name="ac" value="s" />
<div class="search_input">
<input id="searchkw" name="kw" value="小组、话题、用户" />
</div>
<a onclick="searchon()" style="background-position: -157px 0px;">搜索</a>
<span style="display:none;"><input id="searchto" type="submit" value="搜索" /></span>
</form>
</div>

</div>
</div>
{if is_array($TS_SITE[appnav]) && $TS_SITE[appnav][$app] !=''}
<div class="appnav">
<ul>
{loop $TS_SITE[appnav] $key $item}
<li {if $app==$key}class="select"{/if}>
<a href="{SITE_URL}{tsUrl($key)}">{$item}</a>
{if $key=='ask' && $app!=$key}<span class="hot"></span>{/if}
{if $key=='market' && $app!=$key}<span class="new"></span>{/if}
{if $key=='study' && $app!=$key}<span class="hot"></span>{/if}
</li>
{/loop}
<li><a href="{SITE_URL}{tsUrl('home','apps')}">{php echo L::public_moreapps}</a></li>
<li style="float:right;"><a target="_blank" href="http://www.thinksaas.cn/service/">订制开发</a></li>
</ul>
</div>
{/if}